Release 10.1A: OpenEdge Development:
.NET Open Clients
Adding parameters using a generic method
You can use the following generic method on the
Progress.Open4GL.Proxy.ParamArrayclass to set the parameters in theParamArray:
positionSpecifies a 0-based index indicating the parameter position.
valueSpecifies a variable of the appropriate
Objectdata type that contains the value for the parameter, ornullfor anOUTPUTparameter.modeSpecifies the 4GL mode (passing direction) of the parameter. This can be one of the following constant values:
proTypeSpecifies the Progress 4GL data type of the parameter indicated by a class constant defined in the
Progress.Open4GL.Parameterclass, as shown in Table 8–2.
Table 8–2: Progress 4GL parameter data types for the OpenAPI Progress data type Progress.Open4GL.Parameterclass constantextentValueSpecifies the extent of an array, 0 or 1 for a scalar value.
metaDataSpecifies the schema for ProDataSet or temp-table parameters, where
proTypeis one of the following:
Parameter.PRO_DATASETParameter.PRO_DATASETHANDLEParameter.PRO_TEMPTABLEParameter.PRO_TABLEHANDLEThe value can be specified using one of the following classes:
TempTableMetaData— To define the schema information for temp-table parameters or temp-tables in a ProDataSet. For more information on defining this schema, see the "Defining the schema for a temp-table parameter" section.ProDataSetMetaData— To define the schema information for ProDataSet parameters. For more information on defining the schema for ProDataSet parameters, see the "Defining the schema for a ProDataSet parameter" section.When
modeisParamArrayMode.OUTPUTandproTypeisParameter.PRO_DATASETHANDLEorParameter.PRO_TABLEHANDLE(passing a dynamic ProDataSet or temp-table parameter), you can set this parameter tonull.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |